package com.woniuxy.userassembly.service.impl;

import com.woniuxy.userassembly.model.RbacUserRole;
import com.woniuxy.userassembly.dao.RbacUserRoleMapper;
import com.woniuxy.userassembly.service.IRbacUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-22
 */
@Service
public class RbacUserRoleServiceImpl extends ServiceImpl<RbacUserRoleMapper, RbacUserRole> implements IRbacUserRoleService {
    @Autowired
    private RbacUserRoleMapper mapper;

    @Override
    public int addUserRole(RbacUserRole userRole) {
        int i = mapper.addUserRole(userRole);
        return i;
    }

    @Override
    public RbacUserRole selUserRole(int Id) {
        RbacUserRole rbacUserRole = mapper.selUserRole(Id);
        return rbacUserRole;
    }

    @Override
    public int delUserRole(int userRoleId) {
        int i = mapper.delUserRole(userRoleId);
        return i;
    }
}
